package ${package}.api.demo;

import ${package}.api.Apis;
import com.ishansong.common.model.Response;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;
import java.util.HashMap;

/**
 * Author: sid Date:   17/11/26 18:19
 */
@Controller
@RequestMapping("/demo")
public class Demo extends Apis {

    @RequestMapping("hello")
    @ResponseBody
    public Response<Map> pagingNotice(HttpServletRequest request) {
        Map map = new HashMap<>();
        map.put("result", "hello");
        return Response.ok(map);
    }

}

